import defaultAvatar from '@/assets/defaultAvatar.png';

export const getImageUrl = (url: string) => {
    if (url.startsWith('/src') || url.startsWith('http')) {
        return url;
    }
    return `http://127.0.0.1:8080/files/${url}`;
}

export const defalutAvatar = defaultAvatar;